package com.hospital.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
public class Check {
    @NotNull(message = "check_id不得为空")
    private int check_id;

    @NotNull(message = "patient_id不得为空")
    private int patient_id;

    @NotNull(message = "office_id不得为空")
    private int office_id;

    @NotNull(message = "employee_id不得为空")
    private int employee_id;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @NotNull(message = "检查时间不得为空")
    private Date check_time;

    @NotNull(message = "检查项目id不得为空")
    private int Checkitem_id;

}
